﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLHS
{
    public partial class UCMain : UserControl
    {
        public UCMain()
        {
            InitializeComponent();
        }
        int time = 7;
        private void timer_Tick(object sender, EventArgs e)
        {
            labelControl1.Left += time;
            if (labelControl1.Left > this.Width - labelControl1.Width || labelControl1.Left <= 0)
                time = -1;
        }

    }
}
